package cn.ml.springdemo.daYinJi;

public class DaYinJi {
    private MoHe moHe;
    private ZhiZhang zhiZhang;

    public  void print(String msg){
        System.out.println("打印机使用"+moHe+"在"+zhiZhang+"上打印"+msg);
    }
    public DaYinJi() {
    }

    public DaYinJi(MoHe moHe, ZhiZhang zhiZhang) {
        this.moHe = moHe;
        this.zhiZhang = zhiZhang;
    }

    public MoHe getMoHe() {
        return moHe;
    }

    public void setMoHe(MoHe moHe) {
        this.moHe = moHe;
    }

    public ZhiZhang getZhiZhang() {
        return zhiZhang;
    }

    public void setZhiZhang(ZhiZhang zhiZhang) {
        this.zhiZhang = zhiZhang;
    }
}
